﻿namespace CommonData.Util.Data
{
    using System;
    using System.Data;
    using System.Runtime.CompilerServices;

    public static class DataExtension
    {
        public static void AddRange(this IDataParameterCollection paramenters, params IDataParameter[] param)
        {
            if (param != null)
            {
                foreach (IDbDataParameter parameter in param)
                {
                    paramenters.Add(parameter);
                }
            }
        }
    }
}

